package com.ybkj.chat.module.friend_center.fragment;

import android.view.View;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.ybkj.chat.R;
import com.ybkj.chat.base.BaseMvpFragment;
import com.ybkj.chat.manager.ActivityManager;
import com.ybkj.chat.module.friend_center.activity.FollowMoreActivity;
import com.ybkj.chat.ui.adapter.FollowAdapter;
import com.ybkj.chat.ui.view.recyclerview.DividerItemDecoration;
import com.ybkj.chat.ui.view.recyclerview.XRecyclerView;
import com.ybkj.chat.ui.view.refreshlayout.XRefreshLayout;
import com.ybkj.chat.utils.ResourcesUtil;

import butterknife.BindView;

/**
 * author : ywh
 * date : 2019/2/9 16:35
 * description :关注
 */
public class FollowFragment extends BaseMvpFragment {
    @BindView(R.id.follow_recycle)
    XRecyclerView followRecycle;
    @BindView(R.id.refresh_layout)
    XRefreshLayout refreshLayout;

    private FollowAdapter followAdapter;

    @Override
    protected void injectPresenter() {

    }

    @Override
    protected void initView() {
        followRecycle.addItemDecoration(new DividerItemDecoration(mContext, DividerItemDecoration.VERTICAL_LIST, 1,
                ResourcesUtil.getColor(R.color.activity_background)));
        followAdapter = new FollowAdapter(mContext);
        followAdapter.addData("1");
        followAdapter.addData("1");
        followAdapter.addData("1");
        followRecycle.setAdapter(followAdapter);
        followAdapter.setOnItemClickListener(new BaseQuickAdapter.OnItemClickListener() {
            @Override
            public void onItemClick(BaseQuickAdapter adapter, View view, int position) {
                ActivityManager.gotoActivity(mContext, FollowMoreActivity.class);
            }
        });
    }

    @Override
    protected void initData() {

    }

    @Override
    public int getLayoutId() {
        return R.layout.fragment_follow;
    }

    @Override
    protected String getSimpleNme() {
        return null;
    }


}
